﻿using System;
using Jayden.Dll.Web.Enums;
using Jayden.Dll.Web.HtmlControls.Descriptions;
using Jayden.Dll.Web.HtmlControls.Generics;
using Jayden.Dll.Web.HtmlControls.Interfaces;

namespace Jayden.Dll.Web.HtmlControls
{
	public class Source : HtmlElement, WithSrc, WithType
	{
		public Source() : base(SourceDescription.Instance) { }

		public string Src { get { return this["src"]; } set { this["src"] = value; } }
		public string Type { get { return this["type"]; } set { this["type"] = value; } }
		public string Media { get { return this["media"]; } set { this["media"] = value; } }
	}
	public class SourceDescription : HtmlElementDescription
	{
		public static readonly SourceDescription Instance = new SourceDescription();
		private SourceDescription() : base("source", HtmlVersion.Html5) { }
		public override string Description { get { return "enables multiple media sources to be specified for audio and video elements."; } }
		public override Type ControlType { get { return typeof(Source); } }
	}
}
